package com.sherlochao.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sherlochao.dao.ShareVideoDao;
import com.sherlochao.model.ShareVideo;
import com.sherlochao.service.ShareVideoService;


@Transactional
@Service("shareVideoService")
public class ShareVideoServiceImpl implements ShareVideoService{
	
	@Resource
	private ShareVideoDao shareVideoDao;

	@Override
	public ShareVideo get(String id) {
		return shareVideoDao.get(id);
	}

	@Override
	public String save(ShareVideo entity) {
		return shareVideoDao.save(entity);
	}

	@Override
	public void delete(String id) {
		shareVideoDao.delete(id);
	}

	@Override
	public List<ShareVideo> getShareVideoByShareTalkId(String shareTalkId) {
		return shareVideoDao.getShareVideoByShareTalkId(shareTalkId);
	}

}
